<?php 
$querydetail=mysql_query("SELECT p.IDProject, p.NameProject, p.Description,DATE_FORMAT(p.DateStart,'%Y-%m-%d') as DateStart, p.DateComplete, p.IDManager, p.`Status`, e.FullName 
        	FROM pr_project p,employee e WHERE p.IDProject='".$id."' and p.IDManager = e.IDEmployee LIMIT 1");

$queryLstMember=mysql_query("SELECT c.IDComposition, c.IDEmployee, c.IDProject, c.Position, c.Status, e.UserName, e.FullName,
        		 e.Position as PositionEmp FROM pr_composition c, employee e 
        		 WHERE c.IDProject = '$id' AND c.IDEmployee = e.IDEmployee and c.`Status` = 0 and e.State = 1 ");
$prioritycolor = mysql_query("select id,backgroundColor from priority_color order by id desc;");
$mycolors = array();
 while ($row=mysql_fetch_array($prioritycolor)){ 
			$mycolors[$row['id']] = $row['backgroundColor'] ;
 }
unset($_SESSION['addTester']);
unset($_SESSION['addCoder']);
unset($_SESSION['listcomposition']);
?>
<link
	href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="admin/attach/js/webtoolkit.aim.js"></script>
<script type="text/javascript" src="admin/attach/js/myattach.js"></script>
<link
	href="admin/attach/css/myattach.css" rel="stylesheet" type="text/css" />

<script type="text/javascript">
$(function() {
	$("#dialog-message").dialog({
		autoOpen : false,
		modal : true,
		buttons : {
			<?=$l_close?> : function() {
				$(this).dialog("close");
			}
		}
	});

});
function startCallback() {
	// viáº¿t code khi click nÃºt upload vÃ  báº¯t Ä‘áº§u upload.
	$('#attachloading').append ('<?=$l_uploading?>');
	return true;
}
</script>
<script type="text/javascript" src="js/jquery-1.8.2.js"></script>
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css" />
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript"
	src="admin/ckeditor_351/ckeditor.js"></script>
<script type="text/javascript"
	src="admin/ckfinder/ckfinder.js"></script>
<style>
.cke_contents {
	height: 250px !important;
}
a[title="Browse Server"]{
	display:none !important;
}
a[title="Duyá»‡t trÃªn mÃ¡y chá»§"]{
	display:none !important;
}
a[title="ì„œë²„ ë³´ê¸°"]{
	display:none !important;
}
a[title="Link"]{
	display:none !important;
}
a[title="LiÃªn káº¿t"]{
	display:none !important;
}
a[title="ë§�í�¬"]{
	display:none !important;
}
a[title="Advanced"]{
	display:none !important;
}
a[title="Tab má»Ÿ rá»™ng"]{
	display:none !important;
}
a[title="ìž�ì„¸ížˆ"]{
	display:none !important;
}
tr td.cke_bottom{
	display:none !important;
}
</style>

<script type="text/javascript">
	$(document).ready(function(){
		$('.divinvi:not(:last)').hide();
		$('.divinvi:last').show();
		$('#accordion-js').find('.caption').click(function(){
			$(this).next().slideToggle();

		});
		bindEventAfterAjax();
		
	}); 

	var mycolor1 = '<?=$mycolors[1]?>';
	var mycolor2 = '<?=$mycolors[2]?>';
	var mycolor3 = '<?=$mycolors[3]?>';
	function edittile_testproject(idtestproject,idp,idemployee,edittile_testproject,color){
		$('#adderror').slideUp();
		$.ajax({url:"ajax/testproject_id.php?id="+idtestproject,success:function(result){
			var title = $(result).find('#title').val();
			var content = $(result).find('#content').html();
			var listattach = $(result).find('#listattach').html();//attach
			document.getElementById('addnewerror').style.display = 'none';
			document.getElementById('update').style.visibility='visible';
			document.getElementById('update').style.display = 'inline';
			
			var doctil = document.getElementById('titleerror');
			doctil.value= title;
			if(edittile_testproject == '2'){
				document.getElementById('buttonorange').checked =true;
				doctil.style.backgroundColor = "#"+mycolor2;
				
			}else if(edittile_testproject == '3'){
				document.getElementById('buttonred').checked =true;
				doctil.style.backgroundColor = "#"+mycolor3;
				
			}else if(edittile_testproject == '1'){
				document.getElementById('buttonyellow').checked =true;
				doctil.style.backgroundColor = "#"+mycolor1;
			}
			
			document.formadderror.idtestproject.value=idtestproject;		
			var ct = content+"";
			CKEDITOR.instances['ncontent'].setData(ct);
			$('#uploadresult').html(listattach);//attach
			$('#adderror').slideDown();
			$('#titleerror').focus();
		}});
		
	}

	function cancelAddErr(thamso){
		var link = "#"+thamso;
		$(link).slideToggle();

		document.getElementById('addnewerror').style.display = 'visible';
		document.getElementById('update').style.visibility='hidden';
		document.getElementById('update').style.display='none';
		document.getElementById('addnewerror').style.display = 'inline';
		doctitle = document.getElementById('titleerror');
		 doctitle.style.backgroundColor = "#"+mycolor1;
		CKEDITOR.instances.ncontent.setData('');
		$("#formadderror\\:adderror").htmlarea();

		
	}

	
	function bindEventAfterAjax(){
		$("#report tr:not(#mo):even").addClass("odd");
	    $("#report tr:not(.odd):not(#mo)").hide();
	    $("#report tr:last-child").show();
	    
	}
	
	function showcommanderror(indexcomment,idtestproject,id_employee,id,recyclebin,ele,page){
				if (window.XMLHttpRequest)
				  {// code for IE7+, Firefox, Chrome, Opera, Safari
				  xmlhttp=new XMLHttpRequest();
				  }
				else
				  {// code for IE6, IE5
				  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
				  }
				xmlhttp.onreadystatechange=function()
				  {
				  if (xmlhttp.readyState==4 && xmlhttp.status==200)
				    {
					    //alert(xmlhttp.responseText);
				        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
				        $("#report tr.odd:not(#mo)").show();
						$("#report tr:not(.odd):not(#mo)").hide();
						$(ele).parent().parent().parent().hide();
				    	$(ele).parent().parent().parent().next("tr").toggle();
				    }
				  }
			//	var cont = "comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&id="+id;
				//alert(cont);
				//var contenttestpro = $(ele).find("#c_hidden").val();
				
				var lang = '<?=$_SESSION['lang']?>';
				xmlhttp.open("GET","admin/project/show_comment.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang+"&page="+page,true);
				xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
				xmlhttp.send();

		}

	function errorfixed(idp,idtestproject,idemployee,page)
		{
		var lang = '<?=$_SESSION['lang']?>';
		var commentvalue = '<?=$l_fix_complete?>';
		$.ajax({url:"admin/project/project_errorfixed.php",data:{idtestproject:idtestproject,idproject:idp,idemp:idemployee,newlang:lang,page:page,commentvalue:commentvalue},success:function(result){
			$("table#report tr").remove();
			$("table#report tbody").append(result);
	        bindEventAfterAjax();
		}});
	}
	
	function errorconfirm(idp,idtestproject,idemployee,page)
	{
		var lang = '<?=$_SESSION['lang']?>';
		var commentvalue = '<?=$l_confirm_excel?>';
		$.ajax({url:"admin/project/project_errorconfirm.php",data:{idtestproject:idtestproject,idproject:idp,idemp:idemployee,newlang:lang,page:page,commentvalue:commentvalue},success:function(result){
			$("table#report tr").remove();
			$("table#report tbody").append(result);
		    bindEventAfterAjax();
		}});
	}
	
	function errorunconfirm(idp,idtestproject,idemployee,page)
	{
		var lang = '<?=$_SESSION['lang']?>';
		var commentvalue = '<?=$l_no_fix?>';
		$.ajax({url:"admin/project/project_errorunconfirm.php",data:{idtestproject:idtestproject,idproject:idp,idemp:idemployee,newlang:lang,page:page,commentvalue:commentvalue},success:function(result){
			$("table#report tr").remove();
			$("table#report tbody").append(result);
		    bindEventAfterAjax();
		}});
	}
	
	function errorreopen(idp,idtestproject,idemployee,page)
	{
		var lang = '<?=$_SESSION['lang']?>';
		var commentvalue = '<?=$l_reopen?>';
		$.ajax({url:"admin/project/project_errorreopen.php",data:{idtestproject:idtestproject,idproject:idp,idemp:idemployee,newlang:lang,page:page,commentvalue:commentvalue},success:function(result){
			$("table#report tr").remove();
			$("table#report tbody").append(result);
		    bindEventAfterAjax();
		}});
	}
	
	function showthemcommand(ele){
		$(ele).parent().parent().parent().find("#themcommand").toggle();	
	}

	function closethemcommand(ele){
		$(ele).parent().parent().toggle();	
	}
	
	function closeCommand(){
		$("#report tr.odd:not(#mo)").show();
		$("#report tr:not(.odd):not(#mo)").hide();
	}
	
	function javas(ele){
		alert($(ele).parent().find("#ajaxok"))
		$(ele).parent().find("#ajaxok").val("sdfsd");
		
	}
	
	function javass(ele){
		alert(ele);
		alert(ele.parentNode)
		alert(ele.parentNode.getElementsByTagName("input"));
		x = ele.parentNode.getElementsByTagName("input");
		for (i=0;i<x.length;i++)
		{	
			if (x[i].getAttribute("id")=='ajaxok'){
				x[i].value='luan';
				break;
			}
			
		}
		
	}

	
</script>
<script type="text/javascript">
		$(document).ready(function() {
			  var editor = CKEDITOR.replace("ncontent",{language:"<?php $lang_current = $_SESSION['lang'];
		if (isset($lang_current)) {
			if ($lang_current=='VN'){
				echo 'vi';
			}else if ($lang_current=='KR') {
				echo 'ko';
			}
			else{
				echo 'en';
			}
		}
		else{
			echo 'en';
		} ?>", height:'100%', width:'100%'});
				    CKFinder.setupCKEditor(editor, 'admin/ckfinder') ;
			});
	</script>
<script type="text/javascript">

function showdetail(){
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    //alert(xmlhttp.responseText);
	        document.getElementById("ajaxdelete").innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","ajax/project_command.php",true);
	xmlhttp.send();
}

var doctitle="";
var doctil="";
var doctilc="424242";

function onclickRadioRed(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.backgroundColor = '<?="#".$mycolors[3]?>';
}

function onclickRadioOrange(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.backgroundColor = '<?="#".$mycolors[2]?>';
}

function onclickRadioYellow(){
	 doctitle = document.getElementById('titleerror');
	 doctitle.style.backgroundColor = '<?="#".$mycolors[1]?>';
}

function setTitleValues_EditPro(){
	if(doctil==""){
		document.formadderror.titleerror.value = document.getElementById('titleerror').value+"-%$#@!-#424242";
	}else{
		alert('color title === ' + document.formadderror.titleerror.value);
		document.formadderror.titleerror.value =doctil;
	}
}

function viewcommanderror(indexcomment,idtestproject,id_employee,id,recyclebin,ele,page)
{
		if (window.XMLHttpRequest)
		  {// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
		  }
		else
		  {// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		  }
		xmlhttp.onreadystatechange=function()
		  {
		  if (xmlhttp.readyState==4 && xmlhttp.status==200)
		    {
			   // alert(xmlhttp.responseText);
		        $(ele).parent().parent().parent().next("tr").html(xmlhttp.responseText);
		        $("#report tr.odd:not(#mo)").show();
				$("#report tr:not(.odd):not(#mo)").hide();
				$(ele).parent().parent().parent().hide();
		    	$(ele).parent().parent().parent().next("tr").toggle();
		    }
		  }
	//	var cont = "comment-project-hide.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&id="+id;
		//alert(cont);
		//var contenttestpro = $(ele).find("#c_hidden").val();
		var lang = '<?=$_SESSION['lang']?>';
		xmlhttp.open("GET","admin/project/show_comment.php?indexcomment="+indexcomment+"&idtestproject="+idtestproject+"&id_employee="+id_employee+"&idproject="+id+"&recyclebin="+recyclebin+"&newlang="+lang+"&page="+page,true);
		xmlhttp.setRequestHeader("Content-Type", "charset=utf-8");
		xmlhttp.send();

}

function delete_comment(idcomment,idtestpro,idemployee,ele)
{
	var lang = '<?=$_SESSION['lang']?>';

	$.ajax({url:"admin/project/delete-comment.php",data:{idcomment:idcomment,idtestpro:idtestpro,idemp:idemployee,newlang:lang},success:function(result){
		$(ele).parent().parent().parent().parent().html(result);
	    $(ele).parent().parent().parent().parent().parent().parent().find("#titlecomment").val('');
	}
	});

}

function add_comment(idtestpro,idemployee,ele)
{
	if($('textarea#titlecomment').val()==''){
		$('textarea#titlecomment').focus();
		return;
	}
	var comment ="";
	var stylecolor = doctilc;
	comment = $(ele).parent().parent().find("#titlecomment").val();
	var lang = '<?=$_SESSION['lang']?>';

	$.ajax({url:"admin/project/add-comment.php",data:{idtestpro:idtestpro,idemp:idemployee,stylecolor:stylecolor,comment:comment,newlang:lang},success:function(result){
		 $(ele).parent().parent().find("#titlecomment").val('');
		    $(ele).parent().parent().find("#titlecomment").css("color","#424242");
		    $(ele).parent().parent().hide();
		    //alert(xmlhttp.responseText);
		    $(ele).parent().parent().parent().find('#ajaxcomment').html(result);
		    doctilc = "424242";
		}
		});
}

function active_test_project(idtestproject,idp,idemployee,page,ele)
{
	if($('table#report tr:not(.trfoot)').size()==2){
		page = page-1;
		if(page<1) page = 1;
		window.location.assign("admin/project/project_activeerror_reload.php?prdelete="+str+"&idtestproject="+idtestproject+"&idproject="+idp+"&tab=2"+"&page="+page);
		return;
	}
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
		    //alert(xmlhttp.responseText);
	        $("table#report tr").remove();
			$("table#report tbody").append(xmlhttp.responseText);
	        bindEventAfterAjax();
	    }
	  }
var lang = '<?=$_SESSION['lang']?>';
xmlhttp.open("GET","admin/project/project_activeerror.php?idtestproject="+idtestproject+"&idproject="+idp+"&idemp="+idemployee+"&newlang="+lang+"&page="+page,true);
xmlhttp.send();
}


</script>
<script type="text/javascript">
function onclickError(idproject,idemp,page){
	var lang = '<?=$_SESSION['lang']?>';
	$.ajax({url:"admin/project/list_error.php", data:{idproject:idproject,idemp:idemp,newlang:lang,page:page}, success:function(result){
		document.getElementById("aaa").innerHTML=result;
        bindEventAfterAjax();
	}});
	
}

function processEmptyError(idproject,idemployee,page,els){
	
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	        document.getElementById("aaa").innerHTML=xmlhttp.responseText;
	        bindEventAfterAjax();
	    }
	  }
	var lang = '<?=$_SESSION['lang']?>';
	//alert('vo day hok'+"content-project/process-empty-error.php?idproject="+idproject+"&idemp="+idemployee+"&newlang="+lang);
	//alert('vo day hok');
	xmlhttp.open("GET","admin/project/project_emptyerro.php?idproject="+idproject+"&idemp="+idemployee+"&newlang="+lang+"&pages="+page,true);
	xmlhttp.send();
}

</script>
<div id="contains" style="background-color: #edf4f7;">

<div class="title"></div>
<div class="main_content" id="accordion-js">

	<div class="projectInfo">
		<?php while ($row=mysql_fetch_array($querydetail)){ 
			$idmanager = $row['IDManager'];
			
		?>
		<span class="caption"><?php echo $l_project?> : <i><?php echo $row['NameProject']?>
		</i> </span><?php $_SESSION['namepro_temp_admin']=$row['NameProject'];?>
		<div class="divinvi" style="display: none">
			<table width="100%" cellspacing="5" cellpadding="0">
				<tr>
					<td width="150">- <?php echo $l_start_date?> :</td>
					<td class="underline"><?php echo $row['DateStart']?></td>
				</tr>
				<tr>
					<td width="150">- <?php echo $l_manager?> :</td>					
					<td class="underline"><?php echo  $row['FullName'];?>
					</td>
				</tr>
				<tr>
					<td width="150">- <?php echo $l_status?> :</td>
					<td class="underline"><?php 
					if($row['Status']==0){
						echo $l_status_project_no;
					}else{
						echo $l_status_project_done;
					}
					?>
					</td>
				</tr>
				<tr>
					<td width="150">- <?php echo $l_description?> :</td>
					<td class="underline"><?php echo $row['Description']?></td>
				</tr>
			</table>
		</div>
	</div>
	<?php }?>

	<div class="teamPro">
		<a class="caption"><?php echo $l_listmember?> </a>
		<div class="divinvi" style="display: none">
			<table cellspacing="3" width="100%" style="margin-bottom: 20px"
				class="listCom">
				<tr>
					<td class="titleComp"><?php echo $l_tester_team?></td>
					<td class="titleComp"><?php echo $l_coder_team?></td>
				</tr>

				<tr>
					<?php 
					$row_array = array();
					$index = 0;
					while ($row = mysql_fetch_array($queryLstMember)){
							$row_array[$index][0] = $row['IDEmployee'];
							$row_array[$index][1] = $row['Position'];
							$row_array[$index][2] = $row['FullName'];
							$row_array[$index][3] = $row['Status'];
							$index += 1;
						}
						?>
					<td style="vertical-align: top">
						<ul class="composition">
						<?php 
						foreach ($row_array as $row){
						if(($row[0]==$_SESSION['IDEmployee']) && ($row[1]==0)){
							$_SESSION['postest']=1;
						}
						if($row[1]==0){?>
							<li class="itemCom"><?php 	echo $row[2];
							?>
							</li>
							<?php }} ?>
						</ul>
					</td>
					<td style="vertical-align: top">
						<ul class="composition">
						<?php
						foreach ($row_array as $rowCoder){
						 if($rowCoder[1]==1){?>
							<li class="itemCom"><?php 	echo $rowCoder[2];
							?>
							</li>
							<?php } ?>
							<?php }?>
						</ul>
					</td>
				</tr>

			</table>
			<div align="right" style="margin-top:10px">
			<a href="project_admin.php?content=admin/project/updatecomposition.php&id=<?=$id?>"><span class="buttonProject" style="padding: 5px; border:1px solid #999"><?=$l_update?></span></a>
			</div>
		</div>
	</div>
	<form action="admin/project/project_adderror.php" method="get" onsubmit="if(document.getElementById('titleerror').value==''){document.getElementById('titleerror').focus();return false}" name="formadderror" id="formadderror">
	<div class="newError" id="ajaxedittitletestpro">
		<a class="caption"><?php echo $l_add_error?> </a>
		
		<div class="rf-p divinvi" style="width: 100%; display:none" id="adderror">
			<div class="rf-p-b">
				<ul class="buttonColor">
					<li style="vertical-align: middle" title="<?=$l_priority3 ?>"><input class="buttonRed" style="background-color: <?="#".$mycolors[3]?>" type="button" onclick="onclickRadioRed();"/>
						<input type="radio" name="priority" value="3" id="buttonred" onclick="onclickRadioRed();"/></li>
					<li style="vertical-align: middle" title="<?=$l_priority2 ?>"><input class="buttonOrange" style="background-color: <?="#".$mycolors[2]?>" type="button" onclick="onclickRadioOrange();"/>
						<input type="radio" name="priority"  value="2" id="buttonorange" onclick="onclickRadioOrange();"/></li>
					<li style="vertical-align: middle" title="<?=$l_priority1 ?>"><input class="buttonYellow" style="background-color: <?="#".$mycolors[1]?>" type="button" onclick="onclickRadioYellow();"/>
						<input id="buttonyellow" type="radio" name="priority" value="1" checked="checked" onclick="onclickRadioYellow();"/></li>
				</ul>
				<br class="clear" />
				 <input type="hidden" name='id' value="<?=$id?>" />
				 <input type="hidden" name='page' value="<?=$page?>" id="page"/>
				 <input type="hidden" name='tab' value="<?=$tab?>" id="tab"/>
				  <input type="hidden" name='idtestproject'/>
					 <span style="display: block; text-align: left"><?php echo $l_title?>:</span> 
					 <input type="text" class="intext" style="color: #424242;background-color: <?="#".$mycolors[1]?>" name="titleerror" id="titleerror" />
					 <input type="hidden" class="intext" style="color: #424242;background-color: #FFFFB0" value='FFFFB0' name="titleerrorhidden" id="titleerrorhidden" />
					 <br/>
					 <span style="display: block; text-align: left"><?php echo $l_content?>: </span>
					 <textarea rows="" cols="" id="ncontent" class="ncontent" name="ncontent" style="width: 100%"></textarea>
					
					 <table width="100%">
					  <tr> 
						  <td style="text-align:left"> 
						 <div style="float: left" >
							  <a  onkeydown="return CKEDITOR.tools.callFunction(0, 12, event);"
							 id=cke_21 class="cke_off cke_button_image"
							   title=Image role=button tabIndex=-1 aria-labelledby=cke_21_label
							   onclick="CKEDITOR.tools.callFunction(17, this); return false;" href="javascript:void('Image')" ? unselectable="on" 
							   >
								  <input class="buttonProject" type="button" style="margin: 5px 0;" value="Insert images" /> 
							  </a>
						 </div>
						  <div style='float: left;padding-top:2px;margin-left:20px'>
						  	<?php include 'admin/attach/attach.php';?>
						  </div>
						  </td> 
						  <td style="text-align:right"> 
							  <input class="buttonProject" type="submit" style="margin: 5px 0;" id="addnewerror" name="addnewerror" value="<?php echo $l_add_error?>" />
						      <input class="buttonProject"  type="submit" style="margin: 5px 0;visibility: hidden;display: none;" id="update" name="update" value="<?php echo $l_update?>" />
							  <input class="buttonProject"  type="reset" onclick="return cancelAddErr('adderror');$('#formadderror:adderror').value='';" style="margin: 5px 0;" value="<?php echo $l_cancel?>" />
						  </td> 
					  </tr>
					</table>
					  	
					<div style="text-align: right">
											</div>
			</div>
		</div>
	</div>
	</form>
	
	<div style="margin-top: 10px; width: 100%;" id="aaa">
	<?php 
		$tabi = "inlude_error.php";
	if (isset($_REQUEST['tab'])) {
		if ($_REQUEST['tab']==1) {
			$tabi = "inlude_error.php";
		}else{
			$tabi = "include-recyclebin.php";
		}
	}
	include $tabi;?>
	</div>
</div>
</div>
    <?php include 'admin/attach/attachhidden.php';?>